package vashion.azeroth.core.support;

import java.util.HashMap;
import java.util.Map;

public class StatusNameTransform {

    private static Map<String, String> rechargeOrderStatusTransformMap = new HashMap<String, String>();
    
    private static Map<String, String> disburseStatusTransformMap = new HashMap<String, String>();
    
    private static Map<String, String> returnGoodsOrderMap = new HashMap<String, String>();
    
    private static Map<String, String> rebateInfoMap = new HashMap<String, String>();
    
    private static Map<String, String> rebateInfoTypeMap = new HashMap<String, String>();
    
    private static Map<String, String> snapshotStatusMap = new HashMap<String, String>();
	
	static {
		rechargeOrderStatusTransformMap.put("0", "待支付");
		rechargeOrderStatusTransformMap.put("1", "充值成功");
		rechargeOrderStatusTransformMap.put("2", "充值失败");
		rechargeOrderStatusTransformMap.put("3", "待确认");
	}
	
	static {
		disburseStatusTransformMap.put("0", "订单创建");
		disburseStatusTransformMap.put("1", "代理商订单取消");
		disburseStatusTransformMap.put("2", "供货商无货拒接单");
		disburseStatusTransformMap.put("3", "供货商接单");
		disburseStatusTransformMap.put("4", "代理商已付款");
		disburseStatusTransformMap.put("5", "供货商已发货");
		disburseStatusTransformMap.put("6", "订单超时关闭");
		disburseStatusTransformMap.put("7", "支付凭证已上传");
		disburseStatusTransformMap.put("8", "确认支付");
		disburseStatusTransformMap.put("9", "备货");
		disburseStatusTransformMap.put("10", "取消备货");
	}
	
	static {
		returnGoodsOrderMap.put("1", "审核中");
		returnGoodsOrderMap.put("2", "取消退货");
		returnGoodsOrderMap.put("3", "拒绝退货");
		returnGoodsOrderMap.put("4", "同意退货");
		returnGoodsOrderMap.put("5", "退款中");
		returnGoodsOrderMap.put("6", "买家已退货");
		returnGoodsOrderMap.put("7", "已退款");
	}
	
	static {
		snapshotStatusMap.put("1", "库存不足");
		snapshotStatusMap.put("2", "库存充足");
	}
	
	static {
		rebateInfoMap.put("1", "已生成");
		rebateInfoMap.put("2", "已发放");
		rebateInfoMap.put("3", "已拒绝");
	}
	
	static {
		rebateInfoTypeMap.put("1", "返佣");
		rebateInfoTypeMap.put("2", "返现");
	}
	
	public static String getRechargeOrderStatusName(Integer status) {
		return rechargeOrderStatusTransformMap.get(String.valueOf(status));
	}
	
	public static String getDisburseStatusName(Integer status) {
		return disburseStatusTransformMap.get(String.valueOf(status));
	}
	
	public static String getReturnGoodsOrderStatusName(Integer status) {
		return returnGoodsOrderMap.get(String.valueOf(status));
	}
	
	public static String getRebateInfoStatusName(Integer status) {
		return rebateInfoMap.get(String.valueOf(status));
	}
	
	public static String getRebateInfoTypeName(Integer type) {
		return rebateInfoTypeMap.get(String.valueOf(type));
	}
	
	public static String getSnapshotStatusName(Integer status) {
		return snapshotStatusMap.get(String.valueOf(status));
	}
	
}
